var express = require('express');
var router = express.Router();
var passport=require('passport');
var shopControllers=require('../controllers/shopControllers')

  // 增加商品
  router.post('/addProduct/:uId', function(req, res, next) {
      shopControllers.addProduct(req,res)
  });
  // 删除商品
  router.delete('/delProduct/:shopIds', function(req, res, next) {
      shopControllers.delProduct(req,res)
  });
  //更新商品数量
  router.put('/updateProductNum/:shopId/:count',function(req,res,next){
      shopControllers.updateProductNum(req,res)
  })
/* GET shopping listing. */
router.get('/:uId', function(req, res, next) {
    shopControllers.getShopList(req,res)
 });
module.exports=router;